#ifndef TABLEMODEL_H
#define TABLEMODEL_H

#include <QStyledItemDelegate>
#include <QPainter>
#include <QPixmap>


class TableModel : public QStyledItemDelegate
{
	Q_OBJECT
private:
	QPixmap m_read;
	QPixmap m_unread;
public:
	TableModel(QObject *parent = 0);
	QSize sizeHint(const QStyleOptionViewItem &option,
				   const QModelIndex &index) const;
	void paint(QPainter *painter, const QStyleOptionViewItem &option,
			   const QModelIndex &index) const;
};

#endif // TABLEMODEL_H
